﻿@{
    var name = ViewBag.name;
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")

</head>
<body>
    <div class="header">
        @if (!string.IsNullOrEmpty(name))
        {
            <div id="welcome" class="welcome">欢迎  <a href="/Detail/Index" target="_blank">@ViewBag.name</a> !|<a href="/Login/Out">[退出]</a> </div>
        }
        else
        {
            <div id="notLogin" class="notLogin"><a href="/Login/Register">注册</a> | <a href="/Login/Index">登录</a></div>
        }

</div>
    <div>

        @RenderBody()

    </div>
    @*<div class="bottom">底部</div>*@
    
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
   
    @RenderSection("scripts", required: false)
   
</body>
</html>
